package com.slz3.business.module.goodsManagement.gooBrandRecommendGoods.steward;

import com.slz3.business.frame.response.RR;
import com.slz3.business.frame.response.ResInfo;
import com.slz3.business.module.goodsManagement.gooBrandRecommendGoods.domain.GooBrandRecommendGoods;
import com.slz3.business.module.goodsManagement.gooBrandRecommendGoods.domain.GooBrandRecommendGoodsCondition;
import org.springframework.web.reactive.function.server.ServerRequest;
import org.springframework.web.reactive.function.server.ServerResponse;
import reactor.core.publisher.Mono;

public class GooBrandRecommendGoodsResController extends GooBrandRecommendGoodsResAtomic {

    public Mono<ServerResponse> add(ServerRequest req, GooBrandRecommendGoods gooBrandRecommendGoods) {
        if (GooBrandRecommendGoodsResUnsafeValid.add(req, gooBrandRecommendGoods)) {
            return RR.error(req, ResInfo.builder().theme(RR.UN_SAFE_VALID).description(RR.ILLEGAL_PARAM).build());
        } else {
            return super.add_$GooBrandRecommendGoodsUpdateLock(req, gooBrandRecommendGoods);
        }
    }

    public Mono<ServerResponse> delete(ServerRequest req, GooBrandRecommendGoodsCondition gooBrandRecommendGoodsCondition) {
        if (GooBrandRecommendGoodsResUnsafeValid.delete(req, gooBrandRecommendGoodsCondition)) {
            return RR.error(req, ResInfo.builder().theme(RR.UN_SAFE_VALID).description(RR.ILLEGAL_PARAM).build());
        } else {
            return super.delete_$GooBrandRecommendGoodsUpdateLock(req, gooBrandRecommendGoodsCondition);
        }
    }

    public Mono<ServerResponse> modify(ServerRequest req, GooBrandRecommendGoods gooBrandRecommendGoods) {
        if (GooBrandRecommendGoodsResUnsafeValid.modify(req, gooBrandRecommendGoods)) {
            return RR.error(req, ResInfo.builder().theme(RR.UN_SAFE_VALID).description(RR.ILLEGAL_PARAM).build());
        } else {
            return super.modify_$GooBrandRecommendGoodsUpdateLock(req, gooBrandRecommendGoods);
        }
    }

    public Mono<ServerResponse> list(ServerRequest req) {
        if (GooBrandRecommendGoodsResUnsafeValid.list(req)) {
            return RR.error(req, ResInfo.builder().theme(RR.UN_SAFE_VALID).description(RR.ILLEGAL_PARAM).build());
        } else {
            return super.list(req);
        }
    }

    public Mono<ServerResponse> info(ServerRequest req) {
//        return gooBrandRecommendGoodsResAtomic.info_$GooBrandRecommendGoodsUpdateLock(req);
        if (GooBrandRecommendGoodsResUnsafeValid.info(req)) {
            return RR.error(req, ResInfo.builder().theme(RR.UN_SAFE_VALID).description(RR.ILLEGAL_PARAM).build());
        } else {
            return super.info_$GooBrandRecommendGoodsUpdateLock(req);
        }
    }

    public Mono<ServerResponse> choice(ServerRequest req) {
        if (GooBrandRecommendGoodsResUnsafeValid.choice(req)) {
            return RR.error(req, ResInfo.builder().theme(RR.UN_SAFE_VALID).description(RR.ILLEGAL_PARAM).build());
        } else {
            return super.choice(req);
        }
    }

    public Mono<ServerResponse> auditSubmit(ServerRequest req, GooBrandRecommendGoodsCondition gooBrandRecommendGoodsCondition) {
        //
        if (GooBrandRecommendGoodsResUnsafeValid.auditSubmit(req, gooBrandRecommendGoodsCondition)) {
            return RR.error(req, ResInfo.builder().theme(RR.UN_SAFE_VALID).description(RR.ILLEGAL_PARAM).build());
        } else {
            return super.auditSubmit_$GooBrandRecommendGoodsUpdateLock(req, gooBrandRecommendGoodsCondition);
        }
    }

    public Mono<ServerResponse> audit(ServerRequest req, GooBrandRecommendGoodsCondition gooBrandRecommendGoodsCondition) {
        if (GooBrandRecommendGoodsResUnsafeValid.audit(req, gooBrandRecommendGoodsCondition)) {
            return RR.error(req, ResInfo.builder().theme(RR.UN_SAFE_VALID).description(RR.ILLEGAL_PARAM).build());
        } else {
            return super.audit_$GooBrandRecommendGoodsUpdateLock(req, gooBrandRecommendGoodsCondition);
        }
    }

    public Mono<ServerResponse> auditReject(ServerRequest req, GooBrandRecommendGoodsCondition gooBrandRecommendGoodsCondition) {
        if (GooBrandRecommendGoodsResUnsafeValid.auditReject(req, gooBrandRecommendGoodsCondition)) {
            return RR.error(req, ResInfo.builder().theme(RR.UN_SAFE_VALID).description(RR.ILLEGAL_PARAM).build());
        } else {
            return super.auditReject_$GooBrandRecommendGoodsUpdateLock(req, gooBrandRecommendGoodsCondition);
        }
    }

    public Mono<ServerResponse> usingEnable(ServerRequest req, GooBrandRecommendGoodsCondition gooBrandRecommendGoodsCondition) {
        if (GooBrandRecommendGoodsResUnsafeValid.usingEnable(req, gooBrandRecommendGoodsCondition)) {
            return RR.error(req, ResInfo.builder().theme(RR.UN_SAFE_VALID).description(RR.ILLEGAL_PARAM).build());
        } else {
            return super.usingEnable_$GooBrandRecommendGoodsUpdateLock(req, gooBrandRecommendGoodsCondition);
        }
    }

    public Mono<ServerResponse> usingDisable(ServerRequest req, GooBrandRecommendGoodsCondition gooBrandRecommendGoodsCondition) {
        if (GooBrandRecommendGoodsResUnsafeValid.usingDisable(req, gooBrandRecommendGoodsCondition)) {
            return RR.error(req, ResInfo.builder().theme(RR.UN_SAFE_VALID).description(RR.ILLEGAL_PARAM).build());
        } else {
            return super.usingDisable_$GooBrandRecommendGoodsUpdateLock(req, gooBrandRecommendGoodsCondition);
        }
    }

}
